//
//  JsInputBox.h
//  DuTe
//
//  Created by Gikki Ares on 2020/12/22.
//  Copyright © 2020 vgemv. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JsInputBoxVm.h"
NS_ASSUME_NONNULL_BEGIN


@class JsInputBox;
@protocol JsInputBoxDelegate <NSObject>

- (void)jsInputBox:(JsInputBox *)box publishContent:(NSString *)content;


@optional
//- (void)jsInputBoxDismiss:(JsInputBox *)box;

@end

@interface JsInputBox : UIView


@property(nonatomic,weak) id<JsInputBoxDelegate> delegate;

- (JsInputBoxVm *)vm;
- (void)updateUi;
- (void)becomeFirstResponder;
- (NSString *)getText;
- (void)setText:(NSString *)text;
- (void)setPlaceholder:(NSString *)placeholder;

@end

NS_ASSUME_NONNULL_END
